package com.witdata.mysql.base.service;

import com.mybatisflex.core.service.IService;
import com.witdata.mysql.domain.entity.TUser;
import com.witdata.mysql.domain.entity.UserLearningSession;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

public interface UserLearningSessionService extends IService<UserLearningSession> {

    TUser selectByUserName(String username);

    void saveUserName(long id, String username, long startTime, long lastTime);

    void updateUserActivity(String username);

    UserLearningSession findByUsername(String username);

    void saveTimeByUserName(String username,long startTime, long lastTime);

    List<UserLearningSession> getAllUserActivities(String userName);

    void updateStatus(String username);

    List<UserLearningSession> selectAll();

    TUser findUserByUserName(String username);
}
